home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 November / Macworld (1999-11).dmg / Updaters / WhiteCap 3.0.4 / WhiteCap Source.sit / WhiteCap Source / Common / math / Headers / ExpressionDict.h < prev    next >
Text File  |  1999-07-13  |  699b  |  47 lines

  1. #ifndef ExpressionDict_H
  2. #define ExpressionDict_H
  3.  
  4. #include "Hashtable.h"
  5. #include "nodeClass.h"
  6.  
  7.  
  8. class FcnEntry : public nodeClass {
  9.  
  10.     public:
  11.         UtilStr                    mName;
  12.         long                    mSize;
  13.         float**                    mFcn;
  14.  
  15. };
  16.  
  17.  
  18.  
  19. class ExpressionDict {
  20.  
  21.  
  22.     public:
  23.                                 ExpressionDict();
  24.                                 
  25.                                 
  26.         void                    AddVar( UtilStr& inKey, float* inPtr )                { AddVar( inKey.getCStr(), inPtr );    }
  27.         void                    AddVar( char* inKey, float* inPtr );
  28.         
  29.         void                    AddFcn( char* inKey, float* inFArray[], long inSize );
  30.  
  31.  
  32.         float*                    LookupVar( const UtilStr& inName );
  33.         float**                    LookupFunc( const UtilStr& inName, long& outSize );
  34.         
  35.     protected:
  36.         Hashtable                mVarDict;
  37.         nodeClass                mFcnEntries;
  38.  
  39. };
  40.  
  41.  
  42. #endif
  43.  
  44.  
  45.  
  46.  
  47.